﻿<%@ Page Language="C#" MasterPageFile="~/Template/Detail.master" AutoEventWireup="true"
    CodeFile="TrainDetailStatDetail.aspx.cs" Inherits="Page_TrainDetailStatDetail"
    Title="Untitled Page" %>

<%@ Register Src="~/Control/TabberHeader.ascx" TagName="TabberHeader" TagPrefix="wsc" %>
<%@ Register Src="~/Control/ListHeader.ascx" TagName="ListHeader" TagPrefix="wsc" %>
<%@ Register Assembly="Wicresoft.Common" Namespace="Wicresoft.Web.UI.WebControls"
    TagPrefix="wsc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link type="text/css" href="../css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

    <script type="text/javascript" src="../Js/jquery-1.3.2.min-vsdoc.js"></script>

    <script type="text/javascript" src="../Js/jquery-1.3.2.min.js"></script>

    <script type="text/javascript" src="../Js/jquery-ui-1.7.2.custom.min.js"></script>

    <script type="text/javascript" src="../My97DatePicker/WdatePicker.js"></script>

    <script type="text/javascript">

        function ChangeDetailView1() {
            var height = document.body.clientHeight;
            var infoDetail = document.getElementById("trInfo1");
            if (infoDetail.style.display == 'none') {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-collapse.png";
                infoDetail.style.display = '';
            }
            else {
                document.getElementById("imgExpand1").src = "../Images/Icon/icon-expand.png";
                infoDetail.style.display = 'none';
            }
            PageResize();
        }
        function selectAll(cbSelecteAll) {
            for (var i = 0; i < document.aspnetForm.elements.length; i++) {
                var e = document.aspnetForm.elements[i];
                if (e.type == "checkbox") {
                    e.checked = cbSelecteAll.checked;
                }
            }
        }
        function resizeMainTable() {
            var width = document.body.clientWidth;
            if (width < 400) {
                $(".mainTable").width(400);
            } else {
                $(".mainTable").width("100%");
            }
        }
        $(window).bind("resize", function() {
            resizeMainTable();
        })

        $(function() {
            resizeMainTable();
        })
    </script>

    <style type="text/css">
        .FieldName
        {
            width: 70px;
        }
        .FieldInput
        {
            width: 130px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ListToolBarPlaceHolder" runat="Server">
    <table cellspacing="2" cellpadding="0" border="0" id="tblOperator" runat="server">
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="TitleContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="InfoContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="TextContentPlaceHolder" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="TabberContentPlaceHolder" runat="Server">
    <wsc:TabberHeader ID="thInfo" runat="server" DivID="div1" Title="本年学习情况" Selected="true" />
    <wsc:TabberHeader ID="thAll" runat="server" DivID="div2" Title="所有学习情况" />
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Div1ContentPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="mainTable" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitle" runat="server"></asp:Literal>
                        </td>
                        <td width="0" style="display: none;">
                            <a href="#">
                                <img src="../Images/Icon/icon-collapse.png" alt="字段" style="cursor: pointer;" onclick="ChangeDetailView1();"
                                    id="imgExpand1" /></a>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo1">
            <td>
                <div id="MainContent1">
                    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                        <wsc:ListHeader ID="lhName" runat="server" Title="&nbsp;班级名称" Width="200" />
                        <wsc:ListHeader ID="lhPassTime" runat="server" Title="&nbsp;培训年份" Width="80" />
                        <wsc:ListHeader ID="lhScore" runat="server" Title="&nbsp;学分" Width="80" />
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                        <asp:Repeater ID="rptOrderInfo" runat="server">
                            <ItemTemplate>
                                <tr id="TableRow_<%# Container.ItemIndex%>" style="text-align: left;" class="Normal">
                                    <td style="display: none;">
                                        <%# DataBinder.Eval(Container.DataItem,"ID") %>
                                    </td>
                                    <td width="200">
                                        <a href='MySelectClassDetail.aspx?ClassID=<%# DataBinder.Eval(Container.DataItem, "TrainClassID")%>&CreditID=<%# DataBinder.Eval(Container.DataItem, "CreditID")%>'
                                            target="_self" title='<%# Eval("ClassName") %>'>
                                            <%# DataBinder.Eval(Container.DataItem, "ClassName")%></a>
                                    </td>
                                    <td width="80">
                                        <%# DataBinder.Eval(Container.DataItem, "PassTime")%>
                                    </td>
                                    <td width="80">
                                        <%# DataBinder.Eval(Container.DataItem, "Score")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <wsc:DataPager ID="dpPager" runat="server" PageSize="20" Width="100%" UseSimplePager="true"
                    GotoInputCssClass="gototxt" GotoButtonCssClass="gotobtn" CssClass="TablePager"
                    OnPreRender="dpPager_PreRender">
                </wsc:DataPager>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Div2ContentPlaceHolder" runat="Server">
    <table cellspacing="0" cellpadding="0" border="0" class="mainTable" width="100%"">
        <tr>
            <td class="DetailHeader">
                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                    <tr>
                        <td class="ArticleTitle">
                            <asp:Literal ID="ltTitleAll" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr id="trInfo2">
            <td>
                <div id="MainContent2">
                    <table cellspacing="0" cellpadding="0" border="0" class="PageGridHeader" width="100%">
                        <wsc:ListHeader ID="ListHeader1" runat="server" Title="&nbsp;班级名称" />
                        <wsc:ListHeader ID="ListHeader2" runat="server" Title="&nbsp;培训年份" Width="80" />
                        <wsc:ListHeader ID="ListHeader3" runat="server" Title="&nbsp;学分" Width="80" />
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainInfolist">
                        <asp:Repeater ID="rptAll" runat="server">
                            <ItemTemplate>
                                <tr id="TableRow_<%# Container.ItemIndex%>" style="text-align: left;" class="Normal">
                                    <td style="display: none;">
                                        <%# DataBinder.Eval(Container.DataItem,"ID") %>
                                    </td>
                                    <td>
                                        <a href='MySelectClassDetail.aspx?ClassID=<%# DataBinder.Eval(Container.DataItem, "TrainClassID")%>&CreditID=<%# DataBinder.Eval(Container.DataItem, "CreditID")%>'
                                            target="_self" title='<%# Eval("ClassName") %>'>
                                            <%# DataBinder.Eval(Container.DataItem, "ClassName")%></a>
                                    </td>
                                    <td width="80">
                                        <%# DataBinder.Eval(Container.DataItem, "PassTime")%>
                                    </td>
                                    <td width="80">
                                        <%# DataBinder.Eval(Container.DataItem, "Score")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <wsc:DataPager ID="dpPagerAll" runat="server" PageSize="20" Width="100%" GotoInputCssClass="gototxt"
                    GotoButtonCssClass="gotobtn" CssClass="TablePager" UseSimplePager="true" OnPreRender="dpPagerAll_PreRender">
                </wsc:DataPager>
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="TabberJSContentPlaceHolder" runat="Server">
    var height = document.body.clientHeight; var trInfo1 = document.getElementById("trInfo1");
    var MainContent1 = document.getElementById("MainContent1"); if (height > 119) {
    trInfo1.style.height = height - 99 + "px"; MainContent1.style.height = height -
    119 + "px"; } var trInfo2 = document.getElementById("trInfo2"); var MainContent2
    = document.getElementById("MainContent2"); if (height > 119) { trInfo2.style.height
    = height - 99 + "px"; MainContent2.style.height = height - 119 + "px"; }
</asp:Content>
